<?php
namespace account;
class Account {
	public $user = 1;
	public $pwd = 2;

	public function __toString() {
		return '123';
	}

	public function echoUser() {
		echo $this->user;
	}

	public function echoPwd() {
		echo $this->pwd;
	}
}



//$a = new Account();
//echo $a;
//echo PHP_EOL;
//print_r($a);

/**
$reflector = new ReflectionClass('Account');

$properties = $reflector->getProperties();
$i = 1;
foreach($properties as $property) {
	$a->{$property->getName()} = $i;
	$a->{"echo".ucfirst($property->getName())}()."\n";
	$i++;
}
*/
